var DAnim = {
	clearpx : function (stro){
		str=""+stro+"";
		return (str.replace("px","").replace("pt",""))*1;
	},
	espiral : function (obj,time,size){
		if(!size)size=600;
		points = Array();
		for (i=time;i>0;i--){
			px=this.clearpx(obj.style.left)+this.clearpx(obj.style.width)/2+Math.cos(i/(time/(2*Math.PI)))*((size*i/time));
			py=this.clearpx(obj.style.top)+this.clearpx(obj.style.height)/2+Math.sin(i/(time/(2*Math.PI)))*((size*i/time));
			TimeShow.addMove(obj,px,py,false,false,1);		
			points.push({x:parseInt(px),y:parseInt(py)});
		}
		TimeShow.addMove(obj,this.clearpx(obj.style.left)+this.clearpx(obj.style.width)/2,this.clearpx(obj.style.top)+this.clearpx(obj.style.height)/2,false,false,1);
		obj.style.top=points[1].y-this.clearpx(obj.style.height)/2+"px";
		obj.style.left=points[1].x-this.clearpx(obj.style.width)/2+"px";
		TimeShow.RPos(obj);
	},
	grow : function (obj,time){
		if(!time)time=this.clearpx(obj.style.width)/40;
		TimeShow.addMove(obj,false,false,this.clearpx(obj.style.height),this.clearpx(obj.style.width),time);
		obj.style.height="0px";
		obj.style.width="0px";
		TimeShow.RPos(obj);
	},
	reduce : function (obj,time){
		if(!time)time=this.clearpx(obj.style.width)/40;
		TimeShow.addPause(obj,1,"TimeShow.movements[i].object.style.visibility='visible';");
		TimeShow.addMove(obj,this.clearpx(obj.style.left),this.clearpx(obj.style.top),this.clearpx(obj.style.height),this.clearpx(obj.style.width),time);
		obj.style.height="1000px";
		obj.style.width="1000px";
		obj.style.top=(this.clearpx(obj.style.top)-500)+"px";
		obj.style.left=(this.clearpx(obj.style.left)-500)+"px";
		obj.style.visibility="hidden";
		TimeShow.RPos(obj);
	},
	fly : function (obj,time,dir){
		dir = dir*Math.PI/180;
		var orx = obj.style.left;
		var ory = obj.style.top;
		obj.style.top=(this.clearpx(obj.style.top)-(Math.sin(dir)*1000))+"px";
		obj.style.left=(this.clearpx(obj.style.left)-(Math.cos(dir)*1000))+"px";
		TimeShow.RPos(obj);
		TimeShow.addMove(obj,this.clearpx(orx),this.clearpx(ory),false,false,false);
	},
	filter : function (obj,rtime,filter){
		if (filter==false)filter=23;
		TimeShow.addFilter(obj,filter,rtime);
		obj.style.visibility="hidden";
		TimeShow.RPos(obj);
	}
}